package com.ruoyi.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 任务管理对象 gc_task
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@ApiModel
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 委托单id */
    @Excel(name = "委托单id")
    @ApiModelProperty(value = "委托单id")
    private Long commissionId;

    /** 工程id */
    @Excel(name = "工程id")
    @ApiModelProperty(value = "工程id")
    private Long engineeringId;

    /** 任务号 */
    @Excel(name = "任务号")
    @ApiModelProperty(value = "任务号")
    private String taskNumber;

    /** 任务类型 */
    @Excel(name = "任务类型")
    @ApiModelProperty(value = "任务类型")
    private String taskType;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private String status;

    /** 负责人 */
    @Excel(name = "负责人")
    @ApiModelProperty(value = "负责人")
    private String chargePerson;

    /** 任务内容 */
    @Excel(name = "任务内容")
    @ApiModelProperty(value = "任务内容")
    private String taskContent;

    private int allNumber;

    private int incompleteNumber;

    public int getIncompleteNumber() {
        return incompleteNumber;
    }

    public void setIncompleteNumber(int incompleteNumber) {
        this.incompleteNumber = incompleteNumber;
    }

    public int getAllNumber() {
        return allNumber;
    }

    public void setAllNumber(int allNumber) {
        this.allNumber = allNumber;
    }

    /** 执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date executeTime;

    private String startCreateTime;

    private String endCreateTime;

    private String gcNumber;

    public String getStartCreateTime() {
        return startCreateTime;
    }

    public void setStartCreateTime(String startCreateTime) {
        this.startCreateTime = startCreateTime;
    }

    public String getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(String endCreateTime) {
        this.endCreateTime = endCreateTime;
    }

    public String getGcNumber() {
        return gcNumber;
    }

    public void setGcNumber(String gcNumber) {
        this.gcNumber = gcNumber;
    }

    public Date getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(Date executeTime) {
        this.executeTime = executeTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCommissionId(Long commissionId)
    {
        this.commissionId = commissionId;
    }

    public Long getCommissionId()
    {
        return commissionId;
    }
    public void setEngineeringId(Long engineeringId)
    {
        this.engineeringId = engineeringId;
    }

    public Long getEngineeringId()
    {
        return engineeringId;
    }
    public void setTaskNumber(String taskNumber)
    {
        this.taskNumber = taskNumber;
    }

    public String getTaskNumber()
    {
        return taskNumber;
    }
    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public String getTaskType()
    {
        return taskType;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setChargePerson(String chargePerson)
    {
        this.chargePerson = chargePerson;
    }

    public String getChargePerson()
    {
        return chargePerson;
    }
    public void setTaskContent(String taskContent)
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent()
    {
        return taskContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commissionId", getCommissionId())
            .append("engineeringId", getEngineeringId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("taskNumber", getTaskNumber())
            .append("taskType", getTaskType())
            .append("status", getStatus())
            .append("chargePerson", getChargePerson())
            .append("taskContent", getTaskContent())
            .toString();
    }
}
